package com.younio.local.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * @author lan  [1728209643@qq.com]
 * @create 2019-01-10 19:04
 * @desc 线程池配置, 用来分析表号绑定订单
 */
@Configuration
public class ThreadPoolConfig {

    @Bean
    public Executor executor() {
        return Executors.newFixedThreadPool(20);
    }
}
